package org.awa.demo.opencv.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.awa.demo.opencv.entity.GeoPolygonBuildEntity;
import org.awa.demo.opencv.entity.GeoPolygonRoadEntity;

import java.util.List;

/**
 * device-manager
 *
 * @author hxq
 * @since 2020-12-09
 */
public interface GeoPolygonRoadMapper extends BaseMapper<GeoPolygonRoadEntity> {

    Long insertBatch(@Param("list") List<GeoPolygonRoadEntity> list);

    List<GeoPolygonRoadEntity> findGeoListByRange(@Param("range") String range);
//
//    List<GeoPolygonBuildEntity> findBuildingListByRoadId(@Param("roadId") Integer roadId, @Param("length") Integer length);
//
    List<GeoPolygonRoadEntity> findAllGeoFeatureList();

    List<GeoPolygonRoadEntity> findListByRoad(@Param("road") String road);

    List<GeoPolygonRoadEntity> findRoadListByBuild(@Param("buildId") Integer buildId, @Param("length") Integer length);

}
